/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;

import daoimpl.PacienteDaoImpl;
import java.util.List;
import model.Paciente;

/**
 *
 * @author Rodrigo
 */
public class ControllerPaciente {
    
    private final PacienteDaoImpl dao;
    
    public ControllerPaciente() {
        dao = new PacienteDaoImpl();
    }    
    public void inserir(Paciente p){
        dao.inserir(p);
    }
    public void alterar(Paciente p){
        dao.alterar(p);
    }
    public void deletar(Paciente p){
        dao.deletar(p);
    }
    public List<Paciente> listarTodos(){
        return dao.listarTodos();
    }
    public Paciente listarPorId(int id){
        return dao.listarPorId(id);
    }
    
    
    
    
    
}
